package com.lcd.ssm.web.controller;

import com.lcd.ssm.page.PageResult;
import com.lcd.ssm.query.PermissionQueryObject;
import com.lcd.ssm.service.IPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class PermissionController {
    @Autowired
    private IPermissionService permissionService;
    @RequestMapping("/permission_list")
    @ResponseBody
    public PageResult list(PermissionQueryObject queryObject){
        return permissionService.queryForPage(queryObject);
    }


    @RequestMapping("/permission_queryByRid")
    @ResponseBody
    public PageResult queryByRid(PermissionQueryObject queryObject) {
        return permissionService.queryForPage(queryObject);
    }
}
